package DOMD6;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        String str1="hello world i am coming!";
        String str2="eoi";
        List<Character> lists=new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch=str1.charAt(i);
            if(!str2.contains(ch+"")){
                lists.add(ch);
            }
        }
        for (int i = 0; i < lists.size(); i++) {
            System.out.print(lists.get(i));
        }
        System.out.println();
    }
}
